package co.liyao.yblog.controller;

import co.liyao.yblog.mapper.ArticleMapper;
import co.liyao.yblog.model.Article;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @Auther: liyao
 * @Date: 2018/12/30 22:29
 * @Description:
 */
@Controller
public class IndexController {

    @Resource
    private  ArticleMapper mapper;

    @RequestMapping("/")
    public String test(){
       return "home";
    }

    @RequestMapping("/blog")
    public String index(){
        return "index";
    }
}
